<?php
function GetAll()
{
    $conn = getConnection();    
    return $conn->query('SELECT * FROM 2011_Games');
}

function Get($id)
{
    $conn = getConnection();
    $result = $conn->query('SELECT * FROM 2011_Games WHERE id='.$id);
    $rs = $result->fetch_assoc();
    $conn->close();
    return $rs;
}